//
//  YKAppSetting.h
//  YK_CommonModule
//
//  Created by edward on 2021/6/21.
//

#import <Foundation/Foundation.h>



NS_ASSUME_NONNULL_BEGIN

@interface YKAppSetting : NSObject

/// 是否是正式环境
@property (nonatomic, assign, readonly) BOOL isProduct;

- (instancetype)init NS_UNAVAILABLE;

+ (instancetype)sharedInstance;

/// 是否是生产环境
/// @param isProduct 是否是生产环境
- (void)forceUpdateProduct:(BOOL)isProduct;

/// 沙盒和生产环境的配置
/// @param key 键值
/// @param sandboxBlock 沙盒环境
/// @param productBlock 生产环境
- (nullable id)getConfigWithKey:(nonnull NSString *)key sandboxOperate:(id  _Nullable (^)(void))sandboxBlock productOperate:(id  _Nullable (^)(void))productBlock;



@end

NS_ASSUME_NONNULL_END
